package model

import (
	"gorm.io/gorm"
	"time"
)

type Episodes struct {
	Id        uint           `gorm:"column:id;type:bigint UNSIGNED;primaryKey;not null;" json:"id"`
	AudiosId  uint           `gorm:"column:audios_id;type:bigint;not null;" json:"audios_id"`
	Title     string         `gorm:"column:title;type:varchar(50);not null;" json:"title"`
	CreatedAt time.Time      `gorm:"column:created_at;type:datetime(3);not null;" json:"created_at"`
	UpdatedAt time.Time      `gorm:"column:updated_at;type:datetime(3);not null;default:CURRENT_TIMESTAMP(3);" json:"updated_at"`
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);default:NULL;" json:"deleted_at"`
}

func (e *Episodes) TableName() string {
	return "episode"
}
